//
//  MyHeaderView.m
//  inrtest
//
//  Created by 宋辉 on 2017/4/22.
//  Copyright © 2017年. All rights reserved.
//

#import "MyHeaderView.h"

@implementation MyHeaderView
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self CreateView];
    }
    return self;
}

-(void)CreateView{
    
    // 文字
    _textlabel2 = [[UILabel alloc] init];
    _textlabel2 .textColor = [UIColor blackColor];
    //        textlabel.backgroundColor = [UIColor cyanColor];
    _textlabel2.textAlignment=NSTextAlignmentLeft;
    _textlabel2 .font = [UIFont systemFontOfSize:14 * Width_P];
    //    _textlabel2.textAlignment = 1;
    [self addSubview:_textlabel2];
    [_textlabel2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self);
        make.leading.equalTo(self).offset(15);
        make.size.mas_equalTo(CGSizeMake(150, 14 * Width_P));
    }];
    
}

@end
